/**********************************************************/
/* Goblin Defense - A tower defense game for Wii Homebrew */
/* Copyright (C) 2009 Ricardo Bueno Cordeiro              */
/* Licensed under de GNU General Public License v2.0      */
/*   See license_gplv2.txt for detalis                    */
/**********************************************************/

#ifndef __WEAPON_THROWER_H_
#define __WEAPON_THROWER_H_

#include <gccore.h>

#include "../weapon.h"

class WeaponThrower : public UpgradableWeapon {
private:
	f32 x, y;
	u32 throw_cool_time;

public:
	static const u32 gold_price = 10;
	static const u32 shoe_price = 0;
	static const u32 horn_price = 0;
	static const u32 sprite = sprite_thrower;
	static const u32 position_type = WEAPON_POSITION_OFFPATH;

	WeaponThrower(f32 xp, f32 yp);

	void draw();
	void update(u32 step);
	int remove();

	f32 get_x();
	f32 get_y();
	f32 get_radius();

	int get_area_type();
	void pony_near_by(Game *game, Pony *pony);

	int get_position_type();
	void draw_info();
	void click(f32 x, f32 y);
};

#endif
